package com.pan.concurrency.controller;

import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *
 * </p>
 *
 * @author kaiji
 * @since 2020/1/11 15:15
 */
@Log4j2
@Controller
public class TestController {

    private int count;
    private static final int PREFECT_NUM = 1000;


    @ResponseBody
    @GetMapping("test")
    public String test() {

        count++;
        if (count == PREFECT_NUM) {
            log.info("完美");
        }
        return "test=====>" + count;
    }

    public void add() {



    }
}
